import request from '@/utils/request'

// 查询统一的组件权限表列表
export function listComponentGrants(query) {
  return request({
    url: '/business/componentGrants/list',
    method: 'get',
    params: query
  })
}

// 查询统一的组件权限表详细
export function getComponentGrants(id) {
  return request({
    url: '/business/componentGrants/' + id,
    method: 'get'
  })
}

// 新增统一的组件权限表
export function addComponentGrants(data) {
  return request({
    url: '/business/componentGrants',
    method: 'post',
    data: data
  })
}

// 修改统一的组件权限表
export function updateComponentGrants(data) {
  return request({
    url: '/business/componentGrants',
    method: 'put',
    data: data
  })
}

// 删除统一的组件权限表
export function delComponentGrants(id) {
  return request({
    url: '/business/componentGrants/' + id,
    method: 'delete'
  })
}
